package com.qh.physicsexperiment.Controller;

import com.qh.physicsexperiment.domin.Experiment;
import com.qh.physicsexperiment.service.ExperimentService;
import com.qh.physicsexperiment.service.StudentService;
import com.qh.physicsexperiment.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "客户模块功能")
@RestController
@CrossOrigin
@RequestMapping("/custom")
public class StudentController {
    @Autowired
    private StudentService studentService;
    private ExperimentService experimentService;

    @ApiOperation("查看可做实验信息")
    @RequestMapping("/information")
    public Result GetExpers(Integer id) {
        return experimentService.findbyid(id);
    }
}
